package edu.gatech.cs2340.teamrocket.model.map;

/**
 * The ending Location. Has no ShopInventory. Always named "Indigo Plateau."
 *
 * @author Joe Tacheron
 */
public class EndingLocation extends Mountain {

    private static final String NAME = "Indigo Plateau";

    public EndingLocation(int endDistance){
        super(NAME, endDistance);
    }

    /**
     * @return the type of the location (plains, town, etc.) as a String
     */
    @Override
    public String getType() {
        String classname = Mountain.class.getName();
        int startingIndex = classname.lastIndexOf ('.') + 1;
        String typename = classname.substring(startingIndex);
        return typename;
    }
}
